﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SitePagePopUp.Master" AutoEventWireup="true" CodeBehind="Add-Position-Stores.aspx.cs" Inherits="TranTekBE.Marketing.Add_Position_Stores" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="BodyPopupContent" runat="server">
    <div style="margin-left: 0px; margin-top: 0px;">
        <div style="border: 1px solid #000; padding: 10px;">

            <asp:Label ID="ltrErr" runat="server"></asp:Label>
            <div style="margin-top: 0px">
                <asp:TextBox ID="txtViTriCH" runat="server" placeholder="Nhập Vị Trí Cửa Hàng"></asp:TextBox>

                <asp:DropDownList ID="droplist_CH" runat="server">
                </asp:DropDownList>

                <asp:FileUpload ID="FileUpload_Image" runat="server" />

                <asp:Button ID="btnAddEvent" Style="margin-left: 20px" runat="server" Text="Chấp Nhận Thêm" OnClick="btnAddEvent_Click" Width="200px" BackColor="#DBDEE1" Font-Bold="true" />
            </div>
        </div>
        <div style="border: 1px solid #000; padding: 10px;">

            <div style="color: #222; margin-bottom: 5px; background-color: #B7B7B7; padding: 11px; margin-left: 0px;">
                <h3>Hiển Thị Các Vị Trí Quảng Cáo Cửa Hàng</h3>
            </div>
            <div style="margin-top: 20px;">
                <asp:DropDownList ID="droplist_CH_Loc" runat="server" AutoPostBack="true" OnSelectedIndexChanged="droplist_CH_Loc_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
            <table class="table table-striped table-framed table-centered" style="width: 100%; margin-top: 25px;">
                <thead>
                    <tr>
                        <th>STT.</th>
                        <th>Vị Trí</th>
                        <th>Cửa Hàng</th>
                        <th>Hình Ảnh</th>
                        <th></th>
                        <th></th>

                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater ID="rpEvent" runat="server">
                        <ItemTemplate>
                            <tr style="<%# ThuVien.FunctionsUtils.CSS_RowInTable(Container.ItemIndex,"#FFFFE0","#D7E3F2") %>">

                                <td class="tdGrid tdCenterM"><%# Container.ItemIndex + 1 %></td>
                                <td class="tdGrid tdCenterM"><%# Eval("TenViTri") %></td>
                                <td class="tdGrid tdCenterM"><%# Eval("CuaHang") %></td>
                                <td class="tdGrid tdCenterM">
                                    <img style="width:30px" alt="<%# Eval("CuaHang") %>" title="<%# Eval("CuaHang") %>" src="<%# Eval("Url") %>" />
                                </td>
                                <td class="tdGrid tdCenterM"><a class="btn btn-inverse" id='edit_<%# Eval("ViTriID") %>'>Sửa</a></td>
                                
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>

                    <div style="overflow: hidden">

                        <asp:Repeater ID="rptPages" runat="server"
                            OnItemCommand="rptPages_ItemCommand">

                            <ItemTemplate>

                                <asp:LinkButton ID="btnPage"
                                    Style="padding: 1px 3px; margin: 1px; background: #ccc; border: solid 1px #666; font: 8pt tahoma;"
                                    CommandName="Page" CommandArgument="<%# Container.DataItem %>"
                                    runat="server"><%# Container.DataItem %></asp:LinkButton>

                            </ItemTemplate>

                        </asp:Repeater>

                    </div>

                </tbody>
            </table>

        </div>

    </div>
</asp:Content>
